<%@ include file="/common/taglibs.jsp"%>
<!-- TEST DUAL LIST -->

<table border="0">
    <tr>
        <th class="pickLabel">
            <label class="required"><c:out value="${param.leftTitle}"/></label>
        </th>
        <td></td>
        <th class="pickLabel">
            <label class="required"><c:out value="${param.rightTitle}"/></label>
        </th>
    </tr>
    <tr>
        <td>
            <select name="<c:out value="${param.leftId}"/>" multiple="multiple" id="<c:out value="${param.leftId}"/>" size="5">
                <c:if test="${leftList != null}">
                    <c:forEach var="list" items="${leftList}" varStatus="status">
                        <option value="<c:out value="${list.id}"/>">
                            <c:out value="${list.name}" escapeXml="false"/>
                        </option>
                    </c:forEach>
                </c:if>
            </select>
        </td>
        <td>
            <NOBR>
            <input type="button" style="width:90"
                   onclick="moveDualList( this.form.<c:out value="${param.leftId}"/>, this.form.<c:out value="${param.rightId}"/>, false )"
                   name="Add     >>" value="Add       >>"> <BR>
            <NOBR>
            <input type="button" style="width:90"
                   onclick="moveDualList( this.form.<c:out value="${param.rightId}"/>, this.form.<c:out value="${param.leftId}"/>,  false )"
                   name="Add     <<" value="Add       <<"> <BR>
            <NOBR>
            <input type="button" style="width:90"
                   onclick="moveDualList( this.form.<c:out value="${param.leftId}"/>,  this.form.<c:out value="${param.rightId}"/>, true  )"
                   name="Add All >>" value="Add All >>"> <BR>
            <NOBR>
            <input type="button" style="width:90"
                   onclick="moveDualList( this.form.<c:out value="${param.rightId}"/>, this.form.<c:out value="${param.leftId}"/>,  true  )"
                   name="Add All <<" value="Add All <<"> <BR>
            </NOBR>
        </td>

        <td>
            <select name="<c:out value="${param.rightId}"/>" multiple="multiple" id="<c:out value="${param.rightId}"/>" size="5" width="70px">
                <c:if test="${rightList != null}">
                    <c:forEach var="list" items="${rightList}" varStatus="status">
                        <option value="<c:out value="${list.id}"/>">
                            <c:out value="${list.name}" escapeXml="false"/>
                        </option>
                    </c:forEach>
                </c:if>
            </select>
        </td>
    </tr>

</table>
